﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using System.Windows.Media;

namespace ZeroBug.PersonalityEvaluation
{
    public class Score2DoubleCollection : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            ATCESore aTCESore = (ATCESore)value;
            DoubleCollection doubles = new DoubleCollection();
            doubles.Add(aTCESore.TScore);
            doubles.Add(aTCESore.EScore);
            doubles.Add(aTCESore.AScore);
            doubles.Add(aTCESore.CScore);
            return doubles;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
